<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <%@ include file="/WEB-INF/views/modules/commons/head.jsp" %>
    <title>重大项目 -我的项目</title>
    <!-- 我的项目CSS -->
    <link rel="stylesheet" href="<s:url value="/assets/web/css/my/myproject.css"></s:url>">
    <!-- 复选框 -->
    <link rel="stylesheet" href="<s:url value="/assets/web/common/lulu_zujian/ui.css"></s:url>">
    <style>
        /* 显示区域边距 */
        #content-main {
            padding: 30px 30px 0;
        }

        /*菜单修改*/
        .nav-left {
            top: 66px;
        }
    </style>
</head>
<body style="margin:0;padding: 0;">
<%@ include file="/WEB-INF/views/modules/commons/nav.jsp" %>
<%@ include file="/WEB-INF/views/modules/commons/menu.jsp" %>
<table></table>
<div class="av row J_mainContent bgcolor" id="content-main">
    <a href="<s:url value="/onwnerUnit/go/addProject"></s:url>">
        <div class="btn btn-primary createProject">创建项目</div>
    </a>
    <table class="project-info">
        <thead>
        <tr>
            <th>项目名称</th>
            <th>项目类型</th>
            <th>责任单位</th>
            <th>项目联系人</th>
            <th>分管领导</th>
            <th>投资金额</th>
            <th>入库时间</th>
            <th>状态(点击进去详细)</th>
            <!--  <th>操作</th> -->
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${nplist}" var="np">
        <tr>
            <td>${np.name}</td>
            <td>${np.natureTypeDetail}</td>
            <td>${np.resDept}</td>
            <td>${np.contactName}</td>
            <td>${np.resUser}</td>
            <td>${np.money}万元</td>
            <td>${np.createDate}</td>
            <td>
                <c:if test="${np.status=='0'}">
                <a href="<s:url value="/onwnerUnit/queryNode?sysId=${np.sysId}"></s:url>">待业主单位确认节点</a></td>
            </c:if>
            <c:if test="${np.status=='1'}">
            <a href="<s:url value="/onwnerUnit/go/configNode?sysId=${np.sysId}"></s:url>">待审批部门确认节点</a>
            </c:if>
            <c:if test="${np.status == '2'}">
            <div>待攻坚办审核</div>
            </c:if>
            <c:if test="${np.status == '3'}">
            <a href="<s:url value="/onwnerUnit/queryNode?sysId=${np.sysId}"></s:url>">项目进行中</a>
                <%--<div>项目进行中</div>--%>
            </c:if>
            <c:if test="${np.status == '4'}">
            <a href="<s:url value="/onwnerUnit/queryNode?sysId=${np.sysId}"></s:url>">已完成</a>
            </c:if>
            <c:if test="${np.status == '5'}">
            <a href="<s:url value="/onwnerUnit/go/configNode?sysId=${np.sysId}"></s:url>">审核不通过，请重新配置节点信息</a>
            </c:if>
            <c:if test="${np.status == '6'}">
            <a href="<s:url value="/onwnerUnit/queryNode?sysId=${np.sysId}"></s:url>">项目已暂停</a>
            </c:if>

            </c:forEach>
        </tbody>
    </table>
</div>

<%@ include file="/WEB-INF/views/modules/commons/foot.jsp" %>
</body>
</html>
